﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyEmulators2
{
    class ScraperResult
    {
        public string SiteId { get; set; }
        public string Title { get; set; }
        public string System { get; set; }
        public string Year { get; set; }
        public Import_Scraper DataProvider { get; set; }

        public string DisplayMember
        {
            get
            {
                return string.Format("{0} ({1}, {2})", Title, Year, System);
            }
        }

        public ScraperResult Self
        {
            get { return this; }
        }

        public ScraperResult(string siteId, string title, string system, string year, Import_Scraper dataProvider)
        {
            SiteId = siteId == null ? "" : siteId;
            Title = title == null ? "" : title;
            System = system == null ? "" : system;
            Year = year == null ? "" : year;
            DataProvider = dataProvider;
        }
    }
}
